package com.linkit.main.setting;

import android.widget.ListView;
import android.widget.RelativeLayout;

import com.linkit.main.AbstractPage;
import com.linkit.main.MainActivity;
import com.linkit.main.R;

public class SitesLayout extends AbstractPage{
	private MainActivity main;

	public SitesLayout() {
		main = MainActivity.getInstance();
	}
	
	@Override
	public void setControllerId() {
		// được thiết lập ở favoriteroutes
		
	}

	@Override
	protected void setLayout() {
		layout = (RelativeLayout) RelativeLayout.inflate(main,
				R.layout.setting_site, null);
	}

	@Override
	public void showHeader() {
		
	}

	@Override
	public void showContent() {
		ListView listView = (ListView) layout.findViewById(R.id.setting_site_listview);
		SitesAdapter adapter = new SitesAdapter(main.sitesList);
		listView.setAdapter(adapter);
		listView.setOnItemClickListener(adapter);
	}
	@Override
	public void onBackPressed() {
	}
}
